/* Copyright(C): Leaf Johnson 2009,2010

    This file is part of leaf-lib.

    leaf-lib is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    leaf-lib is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with leaf-lib.  If not, see <http://www.gnu.org/licenses/>.


 * 
 * 
 */


#ifndef SENSOR_H_INCLUDED
#define SENSOR_H_INCLUDED
#include <leaf/types.h>

/* 参数p是端口，b指定端口上哪一位，jt表示判断次数 */
extern Bool judge_sensor_low(volatile uint8_t *p, uint8_t b, uint8_t jt );
extern Bool judge_sensor_high(volatile uint8_t *p, uint8_t b, uint8_t jt );

#endif
